import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Change extends JFrame {
	public Change() {
		setTitle("\u8BF7\u9009\u62E9\u706B\u8F66\u7BA1\u7406/\u552E\u7968\u7BA1\u7406");
		getContentPane().setLayout(null);
		
		JButton btnNewButton = new JButton("\u706B\u8F66\u8F66\u6B21\u7BA1\u7406");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				new TrainManger().setVisible(true);
			}
		});
		btnNewButton.setBounds(139, 49, 148, 49);
		getContentPane().add(btnNewButton);
		
		JButton button = new JButton("\u552E\u7968\u7BA1\u7406");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				new Item().setVisible(true);
			}
		});
		this.setSize(500, 300);
		button.setBounds(139, 147, 148, 49);
		getContentPane().add(button);
	}

}
